//
//  LEDutyController.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/24.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LEDutyController.h"

@interface LEDutyController ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation LEDutyController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于民生商家";
    NSDictionary *infoDict = [[NSBundle mainBundle]infoDictionary];
    NSString *versionString = infoDict[@"CFBundleShortVersionString"];
    NSString *text = [NSString stringWithFormat:@"标准版民生商家 V%@",versionString];
    self.nameLabel.text = text;
    
    NSArray *iconsArr = infoDict[@"CFBundleIcons"][@"CFBundlePrimaryIcon"][@"CFBundleIconFiles"];
    NSString *iconLastName = [iconsArr lastObject];
    self.icon.image = [UIImage imageNamed:iconLastName];
}

@end
